package com.zjbbkj.baibai.netty.feign;

import com.zjbbkj.baibai.common.utils.R;
import com.zjbbkj.baibai.domain.orders.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("baibai-order")
public interface OrderFeignService {

    @RequestMapping("/order/order/{IMEIID}")
    R getDevice(@PathVariable("IMEIID") String IMEIID);

    @RequestMapping("/order/order/getOrder")
    R getOrderByOrderNum(@PathVariable("IMEIID") String IMEIID, @PathVariable("orderNum") String orderNum);

    @RequestMapping("/order/order/updateOrder")
    R updateOrder(@RequestBody Orders order);
}
